﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Promotion.aspx.cs" Inherits="BlueMarineWebClient.Promotion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopMainContent" runat="server">
    <form id="form1" runat="server">

        <asp:Label runat="server" ID="lblResult" Text="" />
        <br />
        <asp:DataList ID="dlPromotionDetail" runat="server" Width="100%">
            <ItemTemplate>
                
                <div class="image_wrapper image_fl"><span></span>
                    <asp:Image ID="imgPrImage" runat="server" width="130px" Height="107px" 
                               ImageUrl='<%# Eval("PromotionDetailID", "images/promotiondetail/{0}.jpg") %>' />
                </div>
               

                <p>
                    <asp:Label ID="lblDes" runat="server" Text='<%# Eval("PromotionContent") %>' ></asp:Label>
                </p>
                <div class="cleaner"></div>                
            </ItemTemplate>
        </asp:DataList>
        <br />
        <asp:DataList ID="dlPromotion" runat="server" Width="100%">
            <ItemTemplate>
                <h2><a target="_parent" title="" href='<%# Eval("PromotionID", "/Promotion.aspx?proID={0}") %>'><asp:Label ID="lblPrTitle" runat="server" Text='<%# Eval("PromotionTitle") %>'></asp:Label></a></h2>
                <div class="image_wrapper image_fl"><span></span>
                    <asp:Image ID="imgPrImage" runat="server" width="130px" Height="107px" 
                               ImageUrl='<%# Eval("PromotionID", "images/promotion/{0}.jpg") %>' />
                </div>
                <p>
                    start: <asp:Label ID="lblStart" runat="server" Text='<%# Eval("PromotionStart") %>'></asp:Label>
                    end: <asp:Label ID="lblEnd" runat="server" Text='<%# Eval("PromotionEnd") %>'></asp:Label>
                </p>

                <p>
                    <asp:Label ID="lblDes" runat="server" Text='<%# Eval("PromotionDescription") %>' ></asp:Label>
                </p>
                <div class="cleaner"></div>                
            </ItemTemplate>
        </asp:DataList>
        &nbsp;</form>
</asp:Content>